<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* 
* @author DANG DINH HUNG
*
*/
class Registration extends Public_Controller
{
	
	public function __construct()
	{
		parent::__construct();
		$this->load->model('registration_m'); 
	}
	
	public function index()
	{
		if(isLogin()){ redirect("home");}
		$this->template->title( language_translate('brower_title_registerpage') );
		
	 	$this->template
			->build('registration_page');
	}
	
	//deprecated
	function services(){
		if(!isLogin()){show_404();}
		$this->template
			->build('services_page');
	}
	
	function signin_notify(){
		if(isLogin()){ redirect("home");}
		$this->template
			->build('signin_notify');
	}
	
	//deprecated
	function services_notify(){
		if(!isLogin()){show_404();}
		$this->template
			->build('services_notify');
	}
	
	function submit_step1(){
		$this->registration_m->submit_user_step1();
		exit();
	}
	
	//deprecated
	function submit_step2(){
		$this->registration_m->submit_user_contract();
		exit();
	}
	
	function activated_account(){
		$this->registration_m->activated_account();
		exit();
	}
	
	function changeCountry_async(){
		$this->registration_m->changeCountry_async();
		exit();
	}
	
	function changeState_async(){
		$this->registration_m->changeState_async();
		exit();
	}
	
	function changeProvince_async(){
		$this->registration_m->changeProvince_async();
		exit();
	}
	
	function calculatePriceContract_asysn(){
		$this->registration_m->calculatePriceContract_asysn();
		exit();
	}
	
	//end class
}